package com.botann.projects.constants;

/**
 * Charging
 * API
 * Created by 刘山国 on 2017/11/30.
 * Copyright (c) 2017 伯坦科技. All rights reserved
 */
public class API {

    /**
     * URI
     */
    public static final String URI_ADMIN                    = "/admin";
    public static final String URI_MENU                     = "/menu";
    public static final String URI_ROLE                     = "/role";
    public static final String URI_VIEW                     = "/view";
    public static final String URI_USER                     = "/user";
    public static final String URI_DICTIONARY               = "/dictionary";
    public static final String URI_PUBLIC                   = "/public";
    public static final String URI_PROJECT                  = "/project";
    public static final String URI_VERSION                  = "/version";


    public static final String URL_ALI_OSS_STS               =  "/ali-oss/sts";

    /**
     * ProjectsController
     */
    public static final String URL_VERSION_ADD_UPDATE               = URI_VERSION + "/addOrUpdate";
    public static final String URL_VERSION_DELETE                   = URI_VERSION + "/delete";
    public static final String URL_VERSIONS                         = URI_VERSION + "/list";


    /**
     * ProjectsController
     */
    public static final String URL_PROJECT_ADD_UPDATE               = URI_PROJECT + "/addOrUpdate";
    public static final String URL_PROJECT_DELETE                   = URI_PROJECT + "/delete";
    public static final String URL_PROJECTS                         = URI_PROJECT + "/list";
    public static final String URL_CMD_ADD_UPDATE                   = URI_PROJECT + "/addOrUpdateCmd";
    public static final String URL_CMDS                             = URI_PROJECT + "/cmds";
    public static final String URL_CMD_DELETE                       = URI_PROJECT + "/deleteCmds";
    public static final String URL_CMD_RUN                          = URI_PROJECT + "/cmdRun";

    /**
     * AdminUserController
     */
    public static final String URL_LOGIN                            = "/login";                 // public
    public static final String URL_UNAUTHORIZED                     = "/unauthorized";          // public
    public static final String URL_LOGOUT                           = URI_ADMIN + "/logout";
    public static final String URL_ADD_ADMIN_USER                   = URI_ADMIN + "/addAdminUser";
    public static final String URL_ADMIN_USERS                      = URI_ADMIN + "/users";
    public static final String URL_HAS_SAME_USERNAME                = URI_ADMIN + "/hasSameUsername";
    public static final String URL_DELETE_ADMIN_USERS               = URI_ADMIN + "/deleteAdminUsers";
    public static final String URL_HAS_SAME_PHONE                   = URI_ADMIN + "/hasSamePhone";
    public static final String URL_RESET_ADMIN_USER_PASSWORD        = URI_ADMIN + "/resetAdminUserPassword";
    public static final String URL_UPDATE_ADMIN_USER                = URI_ADMIN + "/updateAdminUser";
    public static final String URL_UPDATE_ADMIN_USER_PASSWORD       = URI_ADMIN + "/updateAdminUserPassword";



     /**
     * MenuController
     */
    public static final String URL_HAS_SAME_MENU                    = URI_MENU + "/hasSameMenu";
    public static final String URL_SAVE_UPDATE_MENUS                = URI_MENU + "/saveOrUpdateMenus";
    public static final String URL_ALL_MENUS                        = URI_MENU + "/loadMenus";
    public static final String URL_UPDATE_MENU_IDS_OF_COMPANY       = URI_MENU + "/updateCompanyMenuWithIds";
    public static final String URL_ROLE_MENUS                       = URI_MENU + "/loadRoleMenus";
    public static final String URL_ROLE_MENU_IDS                    = URI_MENU + "/loadRoleMenuIds";
    public static final String URL_MENU_IDS_OF_COMPANY              = URI_MENU + "/loadCompanyMenuIds";
    public static final String URL_UPDATE_ROLE_MENU_IDS             = URI_MENU + "/updateRoleMenuWithIds";
    public static final String URL_MENUS_OF_COMPANY                 = URI_MENU + "/loadCompanyMenus";

    /**
     * ViewController
     */
    public static final String URL_VIEWS                            = URI_VIEW + "/list";
    public static final String URL_ADD_VIEW                         = URI_VIEW + "/add";
    public static final String URL_UPDATE_VIEW                      = URI_VIEW + "/update";
    public static final String URL_DELETE_VIEWS                     = URI_VIEW + "/delete";
    public static final String URL_VIEW_ITEMS                       = URI_VIEW + "/viewItems";
    public static final String URL_ADD_VIEW_ITEM                    = URI_VIEW + "/addViewItem";
    public static final String URL_UPDATE_VIEW_ITEM                 = URI_VIEW + "/updateViewItem";
    public static final String URL_DELETE_VIEW_ITEMS                = URI_VIEW + "/deleteViewItems";
    public static final String URL_DELETE_VIEWS_OR_ITEMS            = URI_VIEW + "/deleteViewOrItems";
    public static final String URL_ROLE_VIEWS                       = URI_VIEW + "/roleViews";
    public static final String URL_UPDATE_ROLE_VIEWS                = URI_VIEW + "/updateRoleViews";
    public static final String URL_VIEW_AUTHORITY                   = URI_VIEW + "/authority";
    public static final String URL_ALL_MENU_VIEWS                   = URI_VIEW + "/allMenuViews";
    public static final String URL_UPDATE_ALL_MENU_VIEWS            = URI_VIEW + "/updateAllMenuViews";
    public static final String URL_DELETE_MENU_VIEWS                = URI_VIEW + "/deleteMenuViews";

    /**
     * RoleController
     */
    public static final String URL_DICTIONARIES                     = URI_DICTIONARY + "/list";
    public static final String URL_DICTIONARY_ADD_UPDATE            = URI_DICTIONARY + "/addOrUpdate";
    public static final String URL_DICTIONARY_DELETE                = URI_DICTIONARY + "/delete";

    /**
     * RoleController
     */
    public static final String URL_HAS_SAME_NAME_ROLE               = URI_ROLE + "/hasSameNameRole";
    public static final String URL_ADD_ROLE                         = URI_ROLE + "/add";
    public static final String URL_UPDATE_ROLE                      = URI_ROLE +"/update";
    public static final String URL_DELETE_ROLES                     = URI_ROLE +"/deleteRoles";
    public static final String URL_ROLES                            = URI_ROLE +"/list";

}
